package com.sc.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Post implements Serializable {
    private Integer id;

    private Integer typeid;

    private String title;

    private String content;

    private Integer writerid;

    private Date time;

    private String top;

    private String good;

    private String status;

    private Integer click;

    private Integer support;

    private Integer comments;
    //关联用户
    private User user;
    //关联帖子类型表
    private Posttype pt;
    //关联帖子_评论表
    private List<Postcomments> pcs;

    private static final long serialVersionUID = 1L;

    public List<Postcomments> getPcs() {
        return pcs;
    }

    public void setPcs(List<Postcomments> pcs) {
        this.pcs = pcs;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Posttype getPt() {
        return pt;
    }

    public void setPt(Posttype pt) {
        this.pt = pt;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTypeid() {
        return typeid;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Integer getWriterid() {
        return writerid;
    }

    public void setWriterid(Integer writerid) {
        this.writerid = writerid;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getTop() {
        return top;
    }

    public void setTop(String top) {
        this.top = top == null ? null : top.trim();
    }

    public String getGood() {
        return good;
    }

    public void setGood(String good) {
        this.good = good == null ? null : good.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Integer getClick() {
        return click;
    }

    public void setClick(Integer click) {
        this.click = click;
    }

    public Integer getSupport() {
        return support;
    }

    public void setSupport(Integer support) {
        this.support = support;
    }

    public Integer getComments() {
        return comments;
    }

    public void setComments(Integer comments) {
        this.comments = comments;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", typeid=").append(typeid);
        sb.append(", title=").append(title);
        sb.append(", content=").append(content);
        sb.append(", writerid=").append(writerid);
        sb.append(", time=").append(time);
        sb.append(", top=").append(top);
        sb.append(", good=").append(good);
        sb.append(", status=").append(status);
        sb.append(", click=").append(click);
        sb.append(", support=").append(support);
        sb.append(", comments=").append(comments);
        sb.append("]");
        return sb.toString();
    }
}